//
//  SetNotifyAction.swift
//  Clock
//
//  Created by 方强 on 16/7/5.
//  Copyright © 2016年 MT. All rights reserved.
//

import UIKit
import CoreBluetooth

public class SetNotifyAction: BLEBaseAction {
    private var charact:CBCharacteristic?;
    private var enable:Bool!;
    
    public init(charact:CBCharacteristic?, enable:Bool!, option:BLEBaseAction_ActionOption!) {
        super.init(type: BLEBaseAction_ActionType.SETNOTIFY, option: option);
        self.charact = charact;
        self.enable  = enable;
    }
    
    public func getCharact() -> CBCharacteristic?{
        return charact;
    }
    
    public func isEnable() -> Bool!{
        return enable;
    }
}
